<template>
  <div class="good-item">
    <a :href="goodsItem.aUrl">
      <img :src="goodsItem.imgUrl" alt="">
    </a>
    <div class="good-info"> 
      <p>{{goodsItem.title}}</p>
      <span class="score">{{goodsItem.score}}</span>
      <span class="s_num">{{goodsItem.sales_number}}</span>
      <img :src="goodsItem.assess" alt="">
    </div>
    
  </div>
</template>

<script>

  export default {
  name: "GoodItem",
  props: {
    goodsItem: {
      type: Object
    }
  }
}
</script>

<style scoped>

  .good-item {
    padding-bottom: 80px;
    position: relative;
    width: 170px;
  }

  .good-item img {
    width: 100%;
    height: 170px;
  }

  .good-info {
    position: absolute;
    bottom: 5px;
    left: 0;
    right: 0;
    overflow: hidden;
    text-align: center;
    /* display: flex; */
  }

  .good-info p{
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 3px;
    font-size: 18px;
    font-weight: bolder;
    /* position: relative;
    top: 1000px; */
  }

  .good-info .score {
    color: red;
    position: relative;
    left: -30px;
    top: 5px;
    bottom: 5px;
    font-weight: bold;
    font-size: 17px;
    /* flex: left; */

  }
  .good-info .s_num {
    color: rgba(77, 77, 73, 0.767);
    font-weight: 20px;
    font-size: 14px;
    position: relative;
    left: 32px;
    top: 5px;
    bottom: 5px;
  }

  .good-info img {
    height: 36px;
  }

  /* .good-info .score{

  } */
</style>
